package com.wuzu.ecommerce.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * 促销活动表(Activity)实体类
 *
 * @author jsm
 * @since 2023-03-26 17:23:15
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("t_activity")
public class Activity implements Serializable {
    private static final long serialVersionUID = -29522172639680697L;
    /**
     * 主键id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 活动名称;如普通拼团/满减送
     */
    @TableField(value = "name")
    private String name;

    /**
     * 活动开始时间
     */
    @TableField(value = "start_time")
    private Date startTime;

    /**
     * 活动结束时间
     */
    @TableField(value = "end_time")
    private Date endTime;

    /**
     * 是否限购;0不限购，1限购
     */
    @TableField(value = "restrict_flag")
    private Integer restrictFlag;

    /**
     * 限购数量
     */
    @TableField(value = "num")
    private Integer num;

    /**
     * 活动状态;0未开始(默认)/进行中/已结束，通过点击是否失效
     */
    @TableField(value = "flag")
    private Integer flag;

    /**
     * 推广权重
     */
    @TableField(value = "weight")
    private Integer weight;

    /**
     * 是否已删除;逻辑删除，0未删除，1已删除
     */
    @TableField(value = "del_flag")
    private Integer delFlag;

    /**创建时间*/
    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;
}
